/*
 * Copyright (C) 2004, Velocityme Partnership
 * PermissionValueToString.java
 *
 * Created on 22 January 2004, 02:16
 */

package com.velocityme.valueobjects;

import java.util.Comparator;

/**
 *
 * @author  Robert Crida Work
 */
public class PermissionValueToString extends PermissionValue implements Comparable {
    
    /** Creates a new instance of PermissionValueToString */
    public PermissionValueToString(PermissionValue p_value) {
        super(p_value);
    }
    
    public String toString() {
        return getName();
    }

    public int compareTo(Object o) {
        if (o instanceof PermissionValue)
            return getName().compareTo(((PermissionValue)o).getName());
        else
            return 0;
    }
    
}
